﻿@using WebApplication1.ViewModels.SPA
@model EmployeeListViewModel

@{
    Layout = null;
    var emps = Model.Employees;
    Html.RenderAction("AddNewLink");
}
<table border="1" id="EmployeeTable">
    <tr>
        <th>Employee Name</th>
        <th>Salary</th>
    </tr>
    @foreach (var emp in emps)
    {
        <tr style="background-color:@emp.SalaryColor">
            <th>@emp.EmployeeName</th>
            <th>@emp.Salary</th>
        </tr>
    }
</table>



